package com.example.newzone.testavalidations.validations;

import android.content.Context;
import android.widget.Toast;

import com.cndemoz.avalidations.ValidationExecutor;

public class PasswordValidation extends ValidationExecutor {

    @Override
    public boolean doValidate(Context context, String text) {
        if(isNumeric(text)){
            Toast.makeText(context,"是整数",Toast.LENGTH_LONG).show();
            return false;
        }

        return true;
    }
}
